﻿using System.Collections.Generic;
using MongoDB.Driver;

namespace BlogEngine.MongoDbProvider
{
    public interface IMongoMapper<TEntity>
    {
        Document Map(TEntity entity);
        IEnumerable<TEntity> Map(ICursor documents);
        TEntity Map(Document documents);
    }
}